package com.foreknow.oop;

public class TestStu {
  public static void main(String[] args) {
    Stu s = new Stu();
    //给对象的属性赋值
    s.setId(10);
    System.out.println(s.getId());

    //如何给stu对象的name赋值
    s.setName("tom");
    System.out.println(s.getName());
  }
}
